﻿package net.sapfree.core.code;

public class ReplaceRule 
{
	protected String m_regex = "";
	protected String m_replacement = "";
	
	public ReplaceRule(String regex, String replacement)
	{
		m_regex = regex;
		m_replacement = replacement;
	}
	
	public String doReplace(String v)
	{
		return v == null ? null : v.replaceAll(m_regex, m_replacement);
	}
}
